let exchangeConfigDao = module.exports;
let util = require('util');
let mysqlPool = require('./MySQLPool');
exchangeConfigDao.getConfig = async function (type) {

    let sql = 'select * from exchange_config where type = ? limit 1';
    let args = [type];
    let res = await mysqlPool.query(sql, args);
    if (res){
        return res[0];
    }

    return null;
};

exchangeConfigDao.save = async function (record) {
   return 0;
};